package com.wfcm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wfcm.dao.WfCourseChapterDao;
import com.wfcm.datasource.DataSourceContextHolder;
import com.wfcm.datasource.DynamicDataSource;
import com.wfcm.datasource.DynamicDataSourceAnnotation;
import com.wfcm.entity.WfCourseChapterEntity;
import com.wfcm.service.WfCourseChapterService;



@Service("wfCourseChapterService")
@DynamicDataSourceAnnotation
public class WfCourseChapterServiceImpl implements WfCourseChapterService {
	@Autowired
	private WfCourseChapterDao wfCourseChapterDao;
	
	@Override
	public WfCourseChapterEntity queryObject(Integer id){
		return wfCourseChapterDao.queryObject(id);
	}
	
	@Override
	public WfCourseChapterEntity querySimpleObject(Integer id){
		return wfCourseChapterDao.querySimpleObject(id);
	}
	
	@Override
	public WfCourseChapterEntity queryCourseChapter(Integer id){
		return wfCourseChapterDao.queryCourseChapter(id);
	}
	
	@Override
	public List<WfCourseChapterEntity> queryList(Map<String, Object> map){
		return wfCourseChapterDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfCourseChapterDao.queryTotal(map);
	}
	
	@Override
	public void save(WfCourseChapterEntity wfCourseChapter){
		wfCourseChapterDao.save(wfCourseChapter);
	}
	
	@Override
	public void update(WfCourseChapterEntity wfCourseChapter){
		wfCourseChapterDao.update(wfCourseChapter);
	}
	
	@Override
	public void delete(Integer id){
		wfCourseChapterDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfCourseChapterDao.deleteBatch(ids);
	}

	@Override
	public WfCourseChapterEntity queryChapter(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.queryChapter(map);
	}
	
	@Override
	@DynamicDataSourceAnnotation(dataSource = DataSourceContextHolder.dataSource_real)
	public WfCourseChapterEntity queryChapter(Integer id) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.queryChapter(id);
	}

	@Override
	public List<WfCourseChapterEntity> querySimpleChapter(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.querySimpleChapter(map);
	}

	@Override
	public WfCourseChapterEntity queryObjectById(Integer chapterId) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.queryObjectById(chapterId);
	}

	@Override
	public WfCourseChapterEntity queryObjectIgnoreStatus(Integer chapterId) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.queryObjectIgnoreStatus(chapterId);
	}

	@Override
	public List<WfCourseChapterEntity> queryFreeObject(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfCourseChapterDao.queryFreeObject(map);
	}

	@Override
	public List<WfCourseChapterEntity> querySearchList(Map<String, Object> map) {
		return wfCourseChapterDao.querySearchList(map);
	}
}
